package chances.epg.entity.content;

import java.util.Date;

import org.apache.commons.lang.StringUtils;



/**
 * 图文信息
 */

public class Information{

    private Long id;

    private String code;

    private String name;

    private String subName;

    /**
     * 图文摘要.
     */
    private String description;

    /**
     * 图文内容.
     */
    private String content;

    private String source;

    private int hasCopyright;

    private String keyword;

    /**
     * 缩略图.
     */
    private String image;

    private Date validTime;

    private Date expireTime;

    private Date createTime;

    private Date happenTime;
    
    private String imgPrefix;
    
    public String[] getListTagArray() {
        if (StringUtils.isNotBlank(keyword)) {
            return keyword.split(" ");
        }
        return null;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code
     *            the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description
     *            the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content
     *            the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * @return the source
     */
    public String getSource() {
        return source;
    }

    /**
     * @param source
     *            the source to set
     */
    public void setSource(String source) {
        this.source = source;
    }

    /**
     * @return the subName
     */
    public String getSubName() {
        return subName;
    }

    /**
     * @param subName the subName to set
     */
    public void setSubName(String subName) {
        this.subName = subName;
    }

    /**
     * @return the hasCopyright
     */
    public int getHasCopyright() {
        return hasCopyright;
    }

    /**
     * @param hasCopyright the hasCopyright to set
     */
    public void setHasCopyright(int hasCopyright) {
        this.hasCopyright = hasCopyright;
    }

    /**
     * @return the keyword
     */
    public String getKeyword() {
        return keyword;
    }

    /**
     * @param keyword the keyword to set
     */
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    /**
     * @return the image
     */
    public String getImage() {
        return image;
    }

    /**
     * @param image the image to set
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * @return the validTime
     */
    public Date getValidTime() {
        return validTime;
    }

    /**
     * @param validTime the validTime to set
     */
    public void setValidTime(Date validTime) {
        this.validTime = validTime;
    }

    /**
     * @return the expireTime
     */
    public Date getExpireTime() {
        return expireTime;
    }

    /**
     * @param expireTime the expireTime to set
     */
    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    /**
     * @return the createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime the createTime to set
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return the happenTime
     */
    public Date getHappenTime() {
        return happenTime;
    }

    /**
     * @param happenTime the happenTime to set
     */
    public void setHappenTime(Date happenTime) {
        this.happenTime = happenTime;
    }

    /**
     * @return the imgPrefix
     */
    public String getImgPrefix() {
        return imgPrefix;
    }

    /**
     * @param imgPrefix the imgPrefix to set
     */
    public void setImgPrefix(String imgPrefix) {
        this.imgPrefix = imgPrefix;
    }


}
